<?php
namespace Models\Model;
class Userdetails
{
	public $user_details_id;
	public $user_id;
	public $city;
	public $state;	
	public $country;
	public $address;
	public $phone;
	public $fax;
	public $location;
	public $status;
	public $date_added;
	public $date_updated;
	public function exchangeArray($data){
		$this->user_details_id  = (isset($data['user_details_id'])) ? $data['user_details_id']	   	: null;
		$this->user_id      	= (isset($data['user_id']))   		? $data['user_id']     			: null;		
		$this->city  	      	= (isset($data['city']))  			? $data['city']           		: null;		
		$this->state       		= (isset($data['state']))			? $data['state']         		: null;		
		$this->country       	= (isset($data['country']))  		? $data['country']  	       	: null;
		$this->address     		= (isset($data['address'])) 		? $data['address']	   			: null;
		$this->phone   			= (isset($data['phone'])) 			? $data['phone'] 				: null;
		$this->fax  			= (isset($data['fax'])) 			? $data['fax'] 					: null;	
		$this->location  		= (isset($data['location'])) 		? $data['location'] 			: null;	
		$this->status  			= (isset($data['status'])) 			? $data['status'] 				: null;	
		$this->date_added  		= (isset($data['date_added'])) 		? $data['date_added'] 			: null;	
		$this->date_updated  	= (isset($data['date_updated'])) 	? $data['date_updated'] 		: null;	
	}
	// Add the following method:
	public function getArrayCopy()
	{
		return get_object_vars($this);
	}

}